// 商品分类相关的api接口函数相关的对象

// 引入二次封装的axios
import request from '@/utils/request'

// 公共路径
const api_name = '/admin/product';
export default{
    // 获取一级分类getCategory1
    getCategory1(){
        return request({method:'get',url:`${api_name}/getCategory1`})
    },

    // 获取二级分类getCategory2
    getCategory2(category1Id){
        return request({method:'get',url:`${api_name}/getCategory2/${category1Id}`})
    },
    // 获取三级分类getCategory3
    getCategory3(category2Id){
        return request({method:'get',url:`${api_name}/getCategory3/${category2Id}`})
    },
}

